import requestManager from "../utils/request.util";

export const getMap = () => {
  return requestManager.request<any>({
    url: "/config/enums/getMap",
    method: "GET",
  });
};

// 文件BASE64上传
export const fileBase64Upload = (params: { baseStr: string }) => {
  return requestManager.request<string>({
    url: "/file/base64/upload",
    method: "POST",
    data: params,
  });
};

// 获取诊所信息
export const getClinicInfo = () => {
  return requestManager.request<{
    clinicId: number; //诊所ID
    clinicName: string; //诊所名
    logo: string; //诊所logo
    license: string; //营业执照
    licenseUrl: string; //营业执照图片
    province: string; //省代码
    city: string; //市代码
    county: string; //县代码
    address: string; //地址
  }>({
    url: "/clinic/info/getClinicInfo",
    method: "GET",
  });
};
